from django.conf.urls import url

from . import views


urlpatterns = [

    url(r'^login/$', views.UserLoginView.as_view()),
    url(r'^info/$', views.UserModelViewSet.as_view({'get': 'info'})),
    url(r'^upload_img/$', views.UserModelViewSet.as_view({'post': 'upload_img'})),
    url(r'^auth/$', views.UserModelViewSet.as_view({'post': 'auth'})),
    url(r'^synchronous_info/$', views.UserModelViewSet.as_view({'post': 'synchronous_info'})),
    url(r'^allow_couponinfo/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'allow_couponinfo'})),
    url(r'^allow_merchant/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'allow_merchant'})),
    url(r'^allow_merchant_map/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'allow_merchant_map'})),
    url(r'^receive_couponinfo/$', views.AliDiscountCouponInfoModelViewSet.as_view({'post': 'receive_couponinfo'})),
    url(r'^allow_point/$', views.ActivityDataModelViewSet.as_view({'get': 'allow_point'})),
    url(r'^receive_point/$', views.ActivityDataModelViewSet.as_view({'post': 'receive_point'})),
    url(r'^point/$', views.ActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^point/(?P<pk>\d+)/$', views.ActivityDataModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^point_record/$', views.PointRecordModelViewSet.as_view({'get': 'list'})),
    url(r'^coupon/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'coupon'})),
    url(r'^couponexplain/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'couponexplain'})),
    url(r'^merchantscoupon/$', views.AliDiscountCouponInfoModelViewSet.as_view({'post': 'merchantscoupon'})),
    url(r'^order/$', views.OrderInfoModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^order/(?P<pk>\d+)/$', views.OrderInfoModelViewSet.as_view({'get': 'retrieve', 'post': 'partial_update', 'delete': 'destroy'})),
    url(r'^preferential/$', views.OrderInfoModelViewSet.as_view({'post': 'preferential'})),
    url(r'^alidiscountcouponinfo/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponinfo/(?P<pk>\d+)/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'retrieve', 'post': 'partial_update'})),
    url(r'^generatescheme/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'generatescheme'})),
    url(r'^goods/$', views.GoodsModelViewSet.as_view({'get': 'list'})),
    url(r'^goods/(?P<pk>\d+)/$', views.GoodsModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^launchedgoods/$', views.GoodsModelViewSet.as_view({'get': 'list'})),
    url(r'^launchedgoods/(?P<pk>\d+)/$', views.GoodsModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^merchant/$', views.MerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^merchant/(?P<pk>\d+)/$', views.MerchantModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^navigation_bar/$', views.MerchantModelViewSet.as_view({'get': 'navigation_bar'})),
    url(r'^alidiscountcoupon/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'list'})),
    url(r'^allow_coupon/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'allow_coupon'})),
    url(r'^allow_coupon_wyh/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'allow_coupon_wyh'})),
    url(r'^retrieve_coupon_wyh/$', views.AliDiscountCouponModelViewSet.as_view({'post': 'retrieve_coupon_wyh'})),
    url(r'^alidiscountcoupon/(?P<pk>\d+)/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^limit_alidiscountcoupon/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'limit_alidiscountcoupon'})),
    url(r'^merchant_activity/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'merchant_activity'})),
    url(r'^industry/$', views.SpeedLoanIndustryModelViewSet.as_view({'get': 'list'})),
    url(r'^loandraw/$', views.SpeedLoanDrawModelViewSet.as_view({'get': 'list'})),
    url(r'^loandraw/(?P<pk>\d+)/$', views.SpeedLoanDrawModelViewSet.as_view({'post': 'partial_update'})),
    url(r'^lottery/$', views.SpeedLoanDrawModelViewSet.as_view({'get': 'lottery'})),
    url(r'^level/$', views.LevelModelViewSet.as_view({'get': 'list'})),
    url(r'^activity_city/$', views.LevelModelViewSet.as_view({'get': 'activity_city'})),
    url(r'^applet/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'applet'})),
    url(r'^cashactivitydata/$', views.CashActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitydata/(?P<pk>\d+)/$', views.CashActivityDataModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^allow_cash/$', views.CashActivityDataModelViewSet.as_view({'get': 'allow_cash'})),
    url(r'^receive_cash/$', views.CashActivityDataModelViewSet.as_view({'post': 'receive_cash'})),
    url(r'^allow_customize/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'allow_customize'})),
    url(r'^turnplate/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'turnplate'})),
    url(r'^customizeactivity/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'list'})),
    url(r'^customizeactivity/(?P<pk>\d+)/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'put': 'update', 'post': 'partial_update'})),
    url(r'^allow_couponbag/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'allow_couponbag'})),
    url(r'^receive_couponbag/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'post': 'receive_couponbag'})),
    url(r'^customizeactivitydata/$', views.CustomizeActivityFlipCARDS1ModelViewSet.as_view({'get': 'list'})),
    url(r'^customizeactivitydata/(?P<pk>\d+)/$', views.CustomizeActivityFlipCARDS1ModelViewSet.as_view({'put': 'update', 'get': 'retrieve'})),
    url(r'^payment/$', views.CustomeruserBindCardOrderModelViewSet.as_view({'post': 'payment'})),
    url(r'^check_order/$', views.CustomeruserBindCardOrderModelViewSet.as_view({'get': 'check_order'})),

    # 用户模块


]